package com.duniptech.soa.service;

import java.util.ArrayList;

import com.duniptech.soa.util.Util;

public class Compile implements CompileServiceInterface {
	
	public String compile(String serverPackage, byte[] arrayOfFileNames) throws Exception {
		StringBuffer console = new StringBuffer();
		ArrayList<String> fileNames = (ArrayList<String>)Util.fromByteArray(arrayOfFileNames);
		console.append(Util.compile(serverPackage, fileNames));
		return console.toString();
	}
	
}
